#coding: utf8

'''
Created on 2015年12月30日

@author: Administrator
'''

import copy
from django.template.response import TemplateResponse

from error import settings

def error_404(request):
    u'''404错误页面 '''
    
    rsp_data = copy.copy(settings.ERROR['SUCC'])
    return TemplateResponse(request, 'error/www/404.html', rsp_data)

def error_500(request):
    u'''500错误页面 '''
    
    rsp_data = copy.copy(settings.ERROR['SUCC'])
    return TemplateResponse(request, 'error/www/500.html', rsp_data)
